package cn.itcast.hotel.service.impl;

import cn.itcast.hotel.mapper.HotelMapper;
import cn.itcast.hotel.pojo.Hotel;
import cn.itcast.hotel.pojo.PageResult;
import cn.itcast.hotel.pojo.RequestParams;
import cn.itcast.hotel.service.IHotelService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

@Service
public class HotelService extends ServiceImpl<HotelMapper, Hotel> implements IHotelService {
    @Override
    public PageResult search(RequestParams params) {
        // 1.构建查询对象
        // 2.构建查询条件
        // 3.执行分页
        // 4.执行请求
        // 5.解析结果
        // 6.构建PageResult返回

        return null;
    }
}
